package com.edu.zju.scs.panacea.entity.resource;

import com.edu.zju.scs.panacea.utils.MathUtil;

public class Site {
    /**
     * 唯一标识，数据库自动生成
     */
    private Long id;

    /**
     * 自有唯一标识，创建站点时输入
     */
    private String ownId;

    /**
     * 站点名称
     */
    private String name;

    /**
     * 站点类型，0表示自有站点，1表示非自有站点
     */
    private Integer type;

    /**
     * 站点密码
     */
    private String password;

    public Site() {
    }

    public Site(String ownId, String name, Integer type) {
        this.ownId = ownId;
        this.name = name;
        this.type = type;
    }

    public Site(Long id, String ownId, String name, Integer type) {
        this.id = id;
        this.ownId = ownId;
        this.name = name;
        this.type = type;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOwnId() {
        return ownId;
    }

    public void setOwnId(String ownId) {
        this.ownId = ownId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Site{" +
                "id=" + id +
                ", ownId='" + ownId + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                '}';
    }
}
